package com.example.easybuy.mappers;

import com.example.easybuy.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface NewsMapper {
    List<News> newsByPage(Map<String, Object> map);
    int delNews(int id);
    int addNews(Map<String, Object> news);
    int updateNews(Map<String,Object> news);

    News getNews(int id);
}
